Optimal. Leaf size=148 \[ \frac {A b^2 x \sqrt {b \cos (c+d x)}}{2 \sqrt {\cos (c+d x)}}+\frac {A b^2 \sin (c+d x) \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}}{2 d}-\frac {b^2 B \sin ^3(c+d x) \sqrt {b \cos (c+d x)}}{3 d \sqrt {\cos (c+d x)}}+\frac {b^2 B \sin (c+d x) \sqrt {b \cos (c+d x)}}{d \sqrt {\cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 148, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {17, 2748, 2635, 8, 2633} \[ \frac {A b^2 x \sqrt {b \cos (c+d x)}}{2 \sqrt {\cos (c+d x)}}+\frac {A b^2 \sin (c+d x) \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}}{2 d}-\frac {b^2 B \sin ^3(c+d x) \sqrt {b \cos (c+d x)}}{3 d \sqrt {\cos (c+d x)}}+\frac {b^2 B \sin (c+d x) \sqrt {b \cos (c+d x)}}{d \sqrt {\cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 17
Rule 2633
Rule 2635
Rule 2748
Rubi steps
\begin {align*} \int \frac {(b \cos (c+d x))^{5/2} (A+B \cos (c+d x))}{\sqrt {\cos (c+d x)}} \, dx &=\frac {\left (b^2 \sqrt {b \cos (c+d x)}\right ) \int \cos ^2(c+d x) (A+B \cos (c+d x)) \, dx}{\sqrt {\cos (c+d x)}}\\ &=\frac {\left (A b^2 \sqrt {b \cos (c+d x)}\right ) \int \cos ^2(c+d x) \, dx}{\sqrt {\cos (c+d x)}}+\frac {\left (b^2 B \sqrt {b \cos (c+d x)}\right ) \int \cos ^3(c+d x) \, dx}{\sqrt {\cos (c+d x)}}\\ &=\frac {A b^2 \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d}+\frac {\left (A b^2 \sqrt {b \cos (c+d x)}\right ) \int 1 \, dx}{2 \sqrt {\cos (c+d x)}}-\frac {\left (b^2 B \sqrt {b \cos (c+d x)}\right ) \operatorname {Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{d \sqrt {\cos (c+d x)}}\\ &=\frac {A b^2 x \sqrt {b \cos (c+d x)}}{2 \sqrt {\cos (c+d x)}}+\frac {b^2 B \sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {A b^2 \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d}-\frac {b^2 B \sqrt {b \cos (c+d x)} \sin ^3(c+d x)}{3 d \sqrt {\cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.16, size = 69, normalized size = 0.47 \[ \frac {(b \cos (c+d x))^{5/2} (3 A \sin (2 (c+d x))+6 A c+6 A d x+9 B \sin (c+d x)+B \sin (3 (c+d x)))}{12 d \cos ^{\frac {5}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.01, size = 251, normalized size = 1.70 \[ \left [\frac {3 \, A \sqrt {-b} b^{2} \cos \left (d x + c\right ) \log \left (2 \, b \cos \left (d x + c\right )^{2} - 2 \, \sqrt {b \cos \left (d x + c\right )} \sqrt {-b} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - b\right ) + 2 \, {\left (2 \, B b^{2} \cos \left (d x + c\right )^{2} + 3 \, A b^{2} \cos \left (d x + c\right ) + 4 \, B b^{2}\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{12 \, d \cos \left (d x + c\right )}, \frac {3 \, A b^{\frac {5}{2}} \arctan \left (\frac {\sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {b} \cos \left (d x + c\right )^{\frac {3}{2}}}\right ) \cos \left (d x + c\right ) + {\left (2 \, B b^{2} \cos \left (d x + c\right )^{2} + 3 \, A b^{2} \cos \left (d x + c\right ) + 4 \, B b^{2}\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{6 \, d \cos \left (d x + c\right )}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{\frac {5}{2}}}{\sqrt {\cos \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.22, size = 74, normalized size = 0.50 \[ \frac {\left (b \cos \left (d x +c \right )\right )^{\frac {5}{2}} \left (2 B \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right )+3 A \cos \left (d x +c \right ) \sin \left (d x +c \right )+3 A \left (d x +c \right )+4 B \sin \left (d x +c \right )\right )}{6 d \cos \left (d x +c \right )^{\frac {5}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.66, size = 82, normalized size = 0.55 \[ \frac {3 \, {\left (2 \, {\left (d x + c\right )} b^{2} + b^{2} \sin \left (2 \, d x + 2 \, c\right )\right )} A \sqrt {b} + {\left (b^{2} \sin \left (3 \, d x + 3 \, c\right ) + 9 \, b^{2} \sin \left (\frac {1}{3} \, \arctan \left (\sin \left (3 \, d x + 3 \, c\right ), \cos \left (3 \, d x + 3 \, c\right )\right )\right )\right )} B \sqrt {b}}{12 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.71, size = 64, normalized size = 0.43 \[ \frac {b^2\,\sqrt {b\,\cos \left (c+d\,x\right )}\,\left (9\,B\,\sin \left (c+d\,x\right )+3\,A\,\sin \left (2\,c+2\,d\,x\right )+B\,\sin \left (3\,c+3\,d\,x\right )+6\,A\,d\,x\right )}{12\,d\,\sqrt {\cos \left (c+d\,x\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________